import request from '@/utils/request'

export function active_list(query) {//分页查询
    return request({
        url: '/api/active/list',
        method: 'post',
        data: query
    })
}
export function active_save(query) {//新增active
    return request({
        url: '/api/active/save?ts=' + Date.now(),
        method: 'post',
        data: query
    })
}
export function active_edit(query) {//修改active
    return request({
        url: '/api/active/edit',
        method: 'post',
        data: query
    })
}
export function active_updateCloseStatus(query) {//批量上架或者下架active
    return request({
        url: '/api/active/updateCloseStatus',
        method: 'post',
        data: query
    })
}
export function active_updateTopStatus(query) {//批量置顶或取消置顶
    return request({
        url: '/api/active/updateTopStatus',
        method: 'post',
        data: query
    })
}
export function active_delete(query) {//删除 
    return request({
        url: '/api/active/delete',
        method: 'post',
        data: query
    })
}
export function active_deleteAll(query) {//批量删除   
    return request({
        url: '/api/active/deleteAll',
        method: 'post',
        data: query
    })
}
export function active_findById(query) {   
    return request({
        url: '/api/active/findById',
        method: 'post',
        data: query
    })
}
